# coding:utf-8
# @Time      :2022/8/1611:32 PM
# @Author    :peiyu
# @FileName  :session
# @email     :geektime
# @Blog      :https://gitee.com/liupeiyu001/geektime_litemall.git


class Session:
    _access_token = None

    def __init__(self):
        self._access_token = self.refresh_token()
        Session._access_token = self._access_token

    def refresh_token(self):
        ...

    def get_token(self):
        return self._access_token

    @classmethod
    def get_global_session(cls):
        return cls._access_token